package com.company;

import com.company.abstruct.AbstractFactory;
import com.company.abstruct.Phone;
import com.company.abstruct.Tablet;
import com.company.tool.XMLUtil;

public class Main {

    public static void main(String[] args) {
        AbstractFactory factory;
        Phone phone;
        Tablet tablet;
        factory = (AbstractFactory) XMLUtil.getBean();
        assert factory != null;
        phone = factory.producePhone();
        tablet = factory.produceTablet();
        phone.call();
        tablet.write();
    }
}
